_pos = _this select 0;
_aiSide = _this select 1;
_aiStrategicPoints = _this select 2;

_bought = false;

_x = random 500 - random 500;
_y = random 500 - random 500;
_pos = [(getpos _pos select 0) + _x, (getpos _pos select 1) +_y,0]
_xmoney = 0; _xic = 0; _xLC = 0;
if (_aiSide == side0) AND (side0_money > 2000) AND (side0_ic > 10) AND (side0_lc > 20) AND (PreferTanks) then { _bought = "Aircav"; [_pos,_harbour,_aiSide] exec "server\coop\bought\commanderOrdered_aircav.sqs"; _xmoney = 900; _xic = 10; _xLC = 20;};
if (_aiSide == side1) AND (side1_money > 2000) AND (side1_ic > 10) AND (side1_lc > 20) AND (PreferTanks) then { _bought = "Paradrops"; [_pos,_harbour,_aiSide] exec "server\coop\bought\commanderOrdered_AirPlanePara.sqs"; _xmoney = 900; _xic = 10; _xLC = 20;};


if (_aiSide == side0) : side0_money = side0_money - _xmoney; side0_ic = side0_ic - _xic; side0_lc = side0_lc - _xLC;
if (_aiSide == side1) : side1_money = side1_money - _xmoney; side1_ic = side1_ic - _xic; side1_lc = side1_lc - _xLC;

sleep 760;
BuiltSpecial = false;